package com.zdsoft.blp.zongbuju.shouye.wuye.activity;

import android.content.Intent;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.GridView;

import com.zdsoft.blp.R;
import com.zdsoft.blp.gongyong.fanhui.FanHuiView;
import com.zdsoft.blp.gongyong.net.BaseActivity;

/**
 * Created by Administrator on 2016/8/31.
 */
public class WYJFDTJiaoFei extends BaseActivity{
    private FanHuiView back;
    private WebView wv;
    @Override
    protected void init() {
        setContentView(R.layout.wy_jiaofeidating_jf);
        back=find(R.id.back);
        wv=find(R.id.wv);
        back.getTv_title().setText("缴费");
        Intent intent=getIntent();
        String url=intent.getStringExtra("url");
        wv.getSettings().setJavaScriptEnabled(true);
        wv.getSettings().setSupportZoom(true);
        wv.getSettings().setBuiltInZoomControls(true);
        wv.loadUrl(url);//加载网页
        //设置webview自己进行加载网页  而不是调用默认的浏览器加载
        wv.setWebViewClient(new WebViewClient(){
            @Override
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                view.loadUrl(url);
                return true;

            }
        });
    }
}
